<?php
/**
 * Created by PhpStorm.
 * User: chenzhitao
 * Date: 2018/4/19
 * Time: 上午11:32
 */

namespace app\index\controller;


use app\index\service\CategoryService;
use app\index\service\UrlService;
use think\Controller;

class Users extends BaseController
{
    public function index(){
        $url_list = UrlService::getIndexThirdUrlList();
        $category_list = CategoryService::getSupCategoryList();
        $this->assign("thirdurl_list",$url_list);
        $this->assign("category_list",$category_list);

        return $this->fetch("users");
    }
    public function allOrders(){
        $url_list = UrlService::getIndexThirdUrlList();
        $category_list = CategoryService::getSupCategoryList();
        $this->assign("thirdurl_list",$url_list);
        $this->assign("category_list",$category_list);
        return $this->fetch("allOrders");
    }
    public function usersOrderDt($id){
        $url_list = UrlService::getIndexThirdUrlList();
        $category_list = CategoryService::getSupCategoryList();
        $this->assign("thirdurl_list",$url_list);
        $this->assign("category_list",$category_list);

        return $this->fetch("usersOrderDetail", ["id"=>$id]);
    }
    public function usersSecurities(){
        return $this->fetch("usersSecurities");
    }
    public function usersCouption(){
        $url_list = UrlService::getIndexThirdUrlList();
        $this->assign("thirdurl_list",$url_list);
        return $this->fetch("usersCouption");
    }
    public function usersSecureDetal(){
        $url_list = UrlService::getIndexThirdUrlList();
        $category_list = CategoryService::getSupCategoryList();
        $this->assign("thirdurl_list",$url_list);
        $this->assign("category_list",$category_list);
        return $this->fetch("securitiesDt");
    }
    public function companyInfor(){
        $url_list = UrlService::getIndexThirdUrlList();
        $category_list = CategoryService::getSupCategoryList();
        $this->assign("thirdurl_list",$url_list);
        $this->assign("category_list",$category_list);
        return $this->fetch("companyInfor");
    }
    public function companyCase(){
        $url_list = UrlService::getIndexThirdUrlList();
        $category_list = CategoryService::getSupCategoryList();
        $this->assign("thirdurl_list",$url_list);
        $this->assign("category_list",$category_list);
        return $this->fetch("usersAnli");
    }
    public function companyAddCase(){
        $url_list = UrlService::getIndexThirdUrlList();
        $category_list = CategoryService::getSupCategoryList();
        $this->assign("thirdurl_list",$url_list);
        $this->assign("category_list",$category_list);
        return $this->fetch("usersAddAnli");
    }
    public function companyEditCase($id){
        $url_list = UrlService::getIndexThirdUrlList();
        $category_list = CategoryService::getSupCategoryList();
        $this->assign("thirdurl_list",$url_list);
        $this->assign("category_list",$category_list);
        return $this->fetch("usersEditAnli", ["id"=>$id]);
    }
    public function companyTeam(){
        $url_list = UrlService::getIndexThirdUrlList();
        $category_list = CategoryService::getSupCategoryList();
        $this->assign("thirdurl_list",$url_list);
        $this->assign("category_list",$category_list);
        return $this->fetch("usersTeam");
    }
    public function companyTeamAdd(){
        $url_list = UrlService::getIndexThirdUrlList();
        $category_list = CategoryService::getSupCategoryList();
        $this->assign("thirdurl_list",$url_list);
        $this->assign("category_list",$category_list);
        return $this->fetch("usersAddTeam");
    }
    public function companyTeamEdit($id){
        $url_list = UrlService::getIndexThirdUrlList();
        $category_list = CategoryService::getSupCategoryList();
        $this->assign("thirdurl_list",$url_list);
        $this->assign("category_list",$category_list);
        return $this->fetch("usersEditTeam", ["id"=>$id]);
    }
    // 实名认证
    public function companyAutonym(){
        $url_list = UrlService::getIndexThirdUrlList();
        $category_list = CategoryService::getSupCategoryList();
        $this->assign("thirdurl_list",$url_list);
        $this->assign("category_list",$category_list);
        $url_list = UrlService::getIndexThirdUrlList();
        $this->assign("thirdurl_list",$url_list);
        return $this->fetch("userCertification");
    }
    // 注册认证
    public function companyReginNews(){
        $url_list = UrlService::getIndexThirdUrlList();
        $category_list = CategoryService::getSupCategoryList();
        $this->assign("thirdurl_list",$url_list);
        $this->assign("category_list",$category_list);
        return $this->fetch("userChangePwd");
    }
    public function companyAboutUs(){
        $url_list = UrlService::getIndexThirdUrlList();
        $category_list = CategoryService::getSupCategoryList();
        $this->assign("thirdurl_list",$url_list);
        $this->assign("category_list",$category_list);
        return $this->fetch("usersAboutUs");
    }
    public function testUpload(){
        $url_list = UrlService::getIndexThirdUrlList();
        $category_list = CategoryService::getSupCategoryList();
        $this->assign("thirdurl_list",$url_list);
        $this->assign("category_list",$category_list);
        return $this->fetch("testUpload");
    }
}